/******************************************************************************
* File description: MaintenanceJiaReKuai2PeiZhi.qml
* Function: 维护-加热块：配置
* Current Version: 1.0.0
* Author: 张宇轩
* Date: 2024-08-29
*  -----
*  Copyright by 博坤生物 .
 *****************************************************************************/
import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.14

Item {
    id: root

    /* property 定义开始 */

    /* property 定义结束 */

    ColumnLayout {
        id: containerLayout
        anchors.fill: parent

        // 上半部分
        Item {
            id: topPart
            Layout.fillWidth: true
            Layout.preferredHeight: 40
            Layout.leftMargin: 16
            Layout.rightMargin: 16

            RowLayout {
                id: topPartLayout
                anchors.fill: parent
                spacing: 8

                // 步数
                LabelTextInput {
                    id: buShu
                    Layout.fillWidth: true
                    Layout.fillHeight: true
                    inputWidth: width
                    inputHeight: height
                    placeholderText: ""
                    labelText: "步数"
                }

                // 开仓门
                PureButton {
                    id: openCangMen
                    Layout.preferredWidth: 120
                    Layout.preferredHeight: 40
                    pureBtnColor: "#FF2F42CD"
                    pureHoveredColor: "#FF2F42CD"
                    pureLabelColor: "#FFFFFFFF"
                    pureFontHoveredColor: "#FFFFFFFF"
                    pureBtnBorderColor: "transparent"
                    pureText: "开仓门"
                    disabledPureBtnColor: "#FFF5F5F5"
                    disabledPureBtnBorderColor: "#FFD9D9D9"
                    disabledPureLabelColor: "#FFBFBFBF"
                    // 关闭过渡效果
                    isTransition: false
                }

                // 关仓门
                PureButton {
                    id: closeCangMen
                    Layout.preferredWidth: 120
                    Layout.preferredHeight: 40
                    isEnable: false
                    pureBtnColor: "#FF2F42CD"
                    pureHoveredColor: "#FF2F42CD"
                    pureLabelColor: "#FFFFFFFF"
                    pureFontHoveredColor: "#FFFFFFFF"
                    pureBtnBorderColor: "transparent"
                    pureText: "关仓门"
                    disabledPureBtnColor: "#FFF5F5F5"
                    disabledPureBtnBorderColor: "#FFD9D9D9"
                    disabledPureLabelColor: "#FFBFBFBF"
                    // 关闭过渡效果
                    isTransition: false
                }
            }
        }

        // 分割线
        Rectangle {
            Layout.fillWidth: true
            Layout.preferredHeight: 2
            color: "#FFE6E6E6"
            border.width: 0
        }

        // 中间部分
        Item {
            id: midPart
            Layout.fillWidth: true
            Layout.preferredHeight: 40
            Layout.leftMargin: 16
            Layout.rightMargin: 16

            RowLayout {
                id: midPartLayout
                anchors.fill: parent
                spacing: 8

                // 耗材类型
                LabelComboBox {
                    id: tongDao
                    Layout.fillWidth: true
                    Layout.fillHeight: true
                    comboBoxWidth: width
                    comboBoxHeight: height
                    showListMaxCountinPage: 5
                    model: ["请选择", "八连排", "单管", "有裙边", "无裙边"]
                    comboBoxText: "耗材类型"
                    comboDefaultText: "请选择"
                }

                // 步数
                LabelTextInput {
                    id: dianjiBuShu
                    Layout.fillWidth: true
                    Layout.fillHeight: true
                    inputWidth: width
                    inputHeight: height
                    placeholderText: ""
                    labelText: "步数"
                }

                // 电机上升
                PureButton {
                    id: dianJiUp
                    Layout.preferredWidth: 120
                    Layout.preferredHeight: 40
                    pureBtnColor: "#FF2F42CD"
                    pureHoveredColor: "#FF2F42CD"
                    pureLabelColor: "#FFFFFFFF"
                    pureFontHoveredColor: "#FFFFFFFF"
                    pureBtnBorderColor: "transparent"
                    pureText: "电机上升"
                    disabledPureBtnColor: "#FFF5F5F5"
                    disabledPureBtnBorderColor: "#FFD9D9D9"
                    disabledPureLabelColor: "#FFBFBFBF"
                    // 关闭过渡效果
                    isTransition: false
                }

                // 电机复位
                PureButton {
                    id: dianJiReset
                    Layout.preferredWidth: 120
                    Layout.preferredHeight: 40
                    pureBtnColor: "#FF2F42CD"
                    pureHoveredColor: "#FF2F42CD"
                    pureLabelColor: "#FFFFFFFF"
                    pureFontHoveredColor: "#FFFFFFFF"
                    pureBtnBorderColor: "transparent"
                    pureText: "电机复位"
                    disabledPureBtnColor: "#FFF5F5F5"
                    disabledPureBtnBorderColor: "#FFD9D9D9"
                    disabledPureLabelColor: "#FFBFBFBF"
                    // 关闭过渡效果
                    isTransition: false
                }

            }
        }

        // 下半部分
        Item {
            id: bottomPart
            Layout.fillWidth: true
            Layout.preferredHeight: 40
            Layout.leftMargin: 16
            Layout.rightMargin: 16

            RowLayout {
                id: bottomPartLayout
                anchors.fill: parent
                spacing: 8

                CustomHorSpacerItem {}

                // 耗材自动校准
                PureButton {
                    id: ziDongJiaoZhun
                    Layout.preferredWidth: 120
                    Layout.preferredHeight: 40
                    pureBtnColor: "#FF2F42CD"
                    pureHoveredColor: "#FF2F42CD"
                    pureLabelColor: "#FFFFFFFF"
                    pureFontHoveredColor: "#FFFFFFFF"
                    pureBtnBorderColor: "transparent"
                    pureText: "耗材自动校准"
                    disabledPureBtnColor: "#FFF5F5F5"
                    disabledPureBtnBorderColor: "#FFD9D9D9"
                    disabledPureLabelColor: "#FFBFBFBF"
                    // 关闭过渡效果
                    isTransition: false
                }
            }
        }

        CustomVerSpacerItem {}
    }
}
